<include file="Public:header" />
   		<div class="mainbox" style="width:800px;height:1300px;"><br/>
        	<h1>分配房间</h1>
            <br/><br/><br/>

            <form class="form-horizontal" action="{:U('Admin/System/allocate')}" method="POST">

                <div class="form-group" style="height:40px;">
                    <label for="inputEmail9" class="col-sm-2 control-label"><span
                            style="color:#F00">*</span>教职工编号:</label>
                    <div class="col-sm-3" style="float: left;">
                        <span>{$staff.staff_id}</span>
                        <input type="hidden" name="staff_id" value="{$staff.staff_id}">
                    </div>
                </div>
                <div class="form-group" style="height:40px;">
                    <label for="inputEmail3" class="col-sm-2 control-label"><span
                            style="color:#F00">*</span>房间号:</label>
                    <div class="col-sm-9" style="float: left;">
                        <foreach name="rooms" item="v">
                            {$v.room_name|default=$v['room_id']}<input type="checkbox"  name="room[]"
                            <?php if(in_array($v['id'],$staff['rooms'])){ ?> checked <?php } ?>
                            value="{$v['id']}" />&nbsp;&nbsp;&nbsp;&nbsp;
                        </foreach>

                    </div>
                </div>

                <div class="form-group" style="height:40px;">
                    <button type="submit" class="btn btn-info btn-lg" style="margin-left:50px;"
                            onclick="window.location.href=''">
                        <span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> &nbsp;&nbsp;保存记录&nbsp;&nbsp;&nbsp;
                    </button>
                </div>
            </form>
           
        
        
    	</div>
    </div>
</div> 

    		<!-- 2 加载jQuery库，同时加载该库必须在加载bootstrap.min.js之前  -->
			<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
            <!-- 3 加载bootstrap核心 -->
            <script src="<?php echo JS_URL ;?>bootstrap.min.js"></script>
</body>
</html>
